package com.candoit.webapps.pricing.model;

import java.io.Serializable;

import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Embeddable
public class MateriaPrimaArticuloFK implements Serializable {

	private static final long serialVersionUID = 7233259083810884687L;
	
	@ManyToOne
	@JoinColumn(name="id_mp", referencedColumnName="id")
	private TipoMateriaPrima materiaPrima;
	
	@ManyToOne
	@JoinColumn(name="id_articulo", referencedColumnName="id")
	private Articulo articulo;

	public Articulo getArticulo() {
		return articulo;
	}

	public void setArticulo(Articulo articulo) {
		this.articulo = articulo;
	}

	public TipoMateriaPrima getMateriaPrima() {
		return materiaPrima;
	}

	public void setMateriaPrima(TipoMateriaPrima materiaPrima) {
		this.materiaPrima = materiaPrima;
	}
	
	
	
	

}
